import { Component, OnInit,Output,EventEmitter } from '@angular/core';
import { Ng4FilesStatus, Ng4FilesSelected } from 'angular4-files-upload';
import{DataTransmissionService} from '../../services/data-transmission.service'
@Component({
  selector: 'app-add-layer',
  templateUrl: './add-layer.component.html',
  styleUrls: ['./add-layer.component.css']
})
export class AddLayerComponent implements OnInit {

  constructor(private dataTransmissionService:DataTransmissionService) { }

  ngOnInit() {
  }

  filesSelect(selectedFiles: Ng4FilesSelected){
    this.dataTransmissionService.sendFile(selectedFiles.files[0]);
  }

}
